<template>
  <div :style="{color}">GrandSon</div>
</template>

<script>
import {defineComponent, inject} from 'vue'
export default defineComponent({
  name: 'GrandSon',
  setup(){
      const color = inject('color')
      return{
          color
      }
  }
})
</script>

<style lang="less" scoped>

</style>
